package com.ubi.core.framework.validation;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

public class XSSValidator implements ConstraintValidator<XSSSafe, String> {

    @Override
    public void initialize(XSSSafe constraintAnnotation) {

    }

    @Override
    public boolean isValid(String value, ConstraintValidatorContext context) {
        return XSSValidateUtils.validate(value);
    }
}
